package com.hbisedm.interninfosys.intern.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sam
 * @since 2020-12-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserInternship implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    //user表主键
    @TableField("SID")
    private Integer sid;

    @TableField(exist = false)
    private String stuName;

    //学号
    @TableField(exist = false)
    private String stuId;

    @TableField(exist = false)
    private String internName;

    @TableField("INTERNSHIP_START_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime internshipStartTime;

    @TableField(exist = false)
    private String startTime;

    @TableField("INTERNSHIP_END_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime internshipEndTime;

    @TableField(exist = false)
    private String endTime;

    @TableField("INTERNSHIP_RECORD_CONTENT_ONE")
    private String internshipRecordContentOne;

    @TableField("INTERNSHIP_RECORD_CONTENT_TWO")
    private String internshipRecordContentTwo;

    @TableField("INTERNSHIP_RECORD_CONTENT_THREE")
    private String internshipRecordContentThree;

    @TableField("INTERNSHIP_RECORD_CONTENT_FOUR")
    private String internshipRecordContentFour;

    @TableField("INTERNSHIP_RECORD_STATUS")
    private Boolean internshipRecordStatus;

    @TableField("INTERNSHIP_SUMMARY_CONTENT")
    private String internshipSummaryContent;

    @TableField("INTERNSHIP_SUMMARY_STATUS")
    private Boolean internshipSummaryStatus;

    @TableField("INTERNSHIP_SIGNATURE")
    private String internshipSignature;

    @TableField("INTERNSHIP_OPINION")
    private String internshipOpinion;

    @TableField("INTERNSHIP_GRADE")
    private Integer internshipGrade;

    @TableField("TEACHER_SIGNATURE")
    private String teacherSignature;

    @TableField("TEACHER_OPINION")
    private String teacherOpinion;

    @TableField("TEACHER_GRADE")
    private Integer teacherGrade;

    @TableField("INTERNSHIP_REPORT_STATUS")
    private Boolean internshipReportStatus;

    /**
     * 0 表示还没提交审核
     * 1 表示提交审核ing
     * 2 表示审核完毕
     *
     */
    @TableField("STATUS")
    private Integer status;

    @TableField("INTERNSHIP_TARGET")
    private String internshipTarget;

    @TableField("INTERNSHIP_PROJECT")
    private String internshipProject;

    @TableField("INTERNSHIP_CONTENT")
    private String internshipContent;

    @TableField("INTERNSHIP_PERFORMANCE")
    private String internshipPerformance;

    @TableField("INTERNSHIP_PERSONAL_SUMMARY")
    private String internshipPersonalSummary;

    @TableField(value = "DELETED", fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;

    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String teacher;

    @TableField(exist = false)
    private String internship;



}
